<template>
	<view class="body">
		<view class="header">
			<view class="header-item">
				宝宝姓名：张三
			</view>
			<view class="header-item">
				所在班级：早数一班
			</view>
		</view>
		<view class="list">
			<view class="list-item">
				<view class="list-item-item item_flex">
					<view class="item_label">
						创建人：
					</view>
					<view class="item_value">
						王武
					</view>
				</view>
				<view class="list-item-item item_flex">
					<view class="item_label">
						创建时间：
					</view>
					<view class="item_value">
						2024/12/12
					</view>
				</view>
				<view class="list-item-item item_flex">
					<view class="item_label">
						备忘内容：
					</view>
					<view class="item_value">
						这里的宝宝姓名最好是输入后进行模糊匹
						配这里的宝宝姓名这里的宝宝姓名最好是输入后进行
						模糊匹配这里的宝宝姓名
					</view>
				</view>
				<view class="list-item-item">
					<view class="item_label">
						附件：
					</view>
					<view class="list-item-item-img">
						<u-image
							src="https://dotflat-saas-res.oss-cn-shanghai.aliyuncs.com/xybaby365/app/icons/zd/plugin_care_jiating.png"
							height="100rpx" width="100rpx" @click="look('src')"></u-image>
					</view>
				</view>
				<view class="btn_list">
					<u-button class="btn-item" type="warning" shape="circle" size="medium"
						>编辑</u-button>
					<u-button class="btn-item" type="warning" shape="circle" size="medium" 
						plain>删除</u-button>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: ''
			};
		},
		onLoad(options) {
			console.log(options);
			this.id = options.id;
		},
		methods: {
			look(url) {
				console.log('查看', url)
			}
		}
	}
</script>

<style lang="scss" scoped>
	::v-deep .u-size-medium {
		display: inline-flex;
		width: auto;
		font-size: 26rpx;
		height: 52rpx !important;
		line-height: 52rpx !important;
		padding: 0 30rpx !important;
	}
	.body {
		height: 100%;
		width: 100%;

		.btn_list {
			margin-top: 24rpx;
			padding-top: 20rpx;
			display: flex;
			justify-content: flex-end;
			width: 100%;
			border-top: 2rpx dashed #EDEEF0;

			.btn-item {
				margin: 0 20rpx;
			}
		}

		.header {
			display: flex;
			margin: 32rpx;
			border-radius: 16rpx;
			padding: 32rpx;
			justify-content: space-between;
			background-color: #fff;
		}

		.list {
			height: calc(100% - 60rpx);

			.list-item {
				margin: 32rpx;
				border-radius: 16rpx;
				padding: 32rpx;
				background-color: #fff;
				border-radius: 20rpx;

				.item_flex {
					display: flex;
					align-items: start;
				}

				.list-item-item {
					padding: 10rpx 0;

					.item_label {
						font-weight: 400;
						font-size: 28rpx;
						color: #999999;
						    width: 150rpx;
					}

					.item_value {
						font-weight: 400;
						font-size: 28rpx;
						color: #333333;
						    width: 470rpx;
					}

					.list-item-item-img {
						width: 100%;
						height: auto;
						display: flex;
						padding: 20rpx 0;
						justify-content: flex-start;
					}
				}
			}
		}
	}
</style>